package cn.ainit.byf.wordbook;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

@Service("wordManagerBase")
public class WordManagerImpl implements WordManager {
	
	private WordDao wordDao;

	@Resource
	public void setAllWord(WordDao wordDao) {
		this.wordDao = wordDao;
	}

	@Override
	public List<ByfBascodeitem> getAllItem(String uid) {
		return wordDao.getAllItem(uid);
	}
	
	public List<ByfBascodeset> getWord(){
		return wordDao.getWord();
	}

	@Override
	public List<ByfBascodesetclass> getWords(String id) {
		return wordDao.getWords(id);
	}

	@Override
	public void addWord(ByfBascodeitem byfBascodeitem) {
		wordDao.addWord(byfBascodeitem);
	}

	@Override
	public boolean delWord(String id) {
		return wordDao.delWord(id);
	}
	
	@Override
	public List<ByfBascodeitem> getItem(String item) {
		return wordDao.getItem(item);
	}

	@Override
	public boolean updateWord(ByfBascodeitem item) {
		return wordDao.updateWord(item);
	}
}
